package com.huangjue.backend.mapper;

import com.huangjue.backend.entity.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface StudentMapper {

    int insert(Student student);
    int update(Student student);
    @Select("select * from student where user_id = #{userId} limit 1")
    Student selectByUserId(Integer userId);

}